CMAKE_MINIMUM_REQUIRED(VERSION 3.16)

PROJECT(nanomsgserver)
# 支持C++11
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -O2 -std=c11")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -g -Wall -O2 -std=c++11")

MESSAGE(STATUS "project source dir: ${PROJECT_SOURCE_DIR}")

MESSAGE(STATUS "path src files: ${PATH_SRC_FILES}")

set(NANOMSG_ROOT /home/liuzx/test_nanomsg/nanomsg-1.2/build/x86_lib)

include_directories(${NANOMSG_ROOT}/include)

link_directories(${NANOMSG_ROOT}/lib64)

# 编译可执行程序
ADD_EXECUTABLE(nanomsgserver nanomsg_server.cpp) 

target_link_libraries(nanomsgserver nanomsg)

#target_link_libraries(testserializate Boost::boost)